package io.geekidea.boot.overduequery.service.impl;

import io.geekidea.boot.framework.service.impl.BaseServiceImpl;
import io.geekidea.boot.otherstores.query.total;
import io.geekidea.boot.overduequery.dto.OverdueQueryExcel;
import io.geekidea.boot.overduequery.entity.OverdueQuery;
import io.geekidea.boot.overduequery.mapper.OverdueQueryMapper;
import io.geekidea.boot.overduequery.query.OverdueQueryQuery;
import io.geekidea.boot.overduequery.service.OverdueQueryService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


@Service
@Transactional(rollbackFor = Exception.class)
public class OverdueQueryServiceImpl extends BaseServiceImpl<OverdueQueryMapper, OverdueQuery> implements OverdueQueryService {

    @Resource
    private OverdueQueryMapper overdueQueryMapper;

    @Override
    public List<OverdueQuery> overdueQueryList(OverdueQueryQuery overdueQueryQuery) {
        return overdueQueryMapper.OverdueQueryList(overdueQueryQuery);
    }

    @Override
    public total getTotal(OverdueQueryQuery overdueQueryQuery) {
        return overdueQueryMapper.getTotal(overdueQueryQuery);
    }

    @Override
    public List<OverdueQueryExcel> queryDownList(OverdueQueryQuery overdueQueryQuery) {
        return overdueQueryMapper.queryDownList(overdueQueryQuery);
    }
}
